/* 模态框遮罩层 */
.login-modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background-color: transparent;
    display: none;
    z-index: 10001;
}

/* 模态框内容盒子 */
.login-modal-content {
    background-color: #fff;
    width: 400px;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    box-sizing: border-box;
    min-height: 520px;
}

/* 标题 */
.login-title {
    font-size: 28px;
    font-weight: 800;
    /* 特粗体 */
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 5px;
}

/* 输入框 */
.login-input-group {
    margin-bottom: 15px;
    height: 60px;
}

.login-input-group:first-of-type {
    margin-bottom: 28px;
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #777;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.3s;
    height: 52px;
}

.login-input:focus {
    border-color: #333;
}

.login-input.is-error {
    border-color: #ef4444;
}


.login-input::placeholder {
    color: #888;
    font-size: 15px;
}


/* 错误提示 */
.login-error {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
    padding-left: 2px;
}

.login-general-error {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 0;
    font-size: 14px;
    min-height: 20px;
    color: #ef4444;
}

/* 登录按钮 */
.login-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
}

.login-submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.login-submit-btn.loading {
    color: transparent;
}

.login-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 选项行（复选框 + 忘记密码） */
.login-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

.policy-check {
    display: flex;
    align-items: center;
}

.policy-check input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.forgot-pwd-link {
    color: #666;
    text-decoration: none;
}

/* 底部链接 */
.login-footer-links {
    margin-bottom: 28px;
    font-size: 16px;
    color: #333;
}

.register-link-action {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* 分隔线 */
.other-login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: #999;
    font-size: 14px;
}

.other-login-divider .line {
    height: 1px;
    background-color: #ccc;
    flex: 1;
}

.other-login-divider .text {
    padding: 0 15px;
}

/* 微信按钮 */
.wechat-login-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.wechat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}